package com.cmhi.softmbh.provider;

import android.net.Uri;
import android.provider.BaseColumns;

/**
 * 保存数据库中的常量
 * @author jacp
 */
public class Provider {
    static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.jacp.demo";
    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.jacp.demo";

    /**
     * 保存ZhongXing表中用到的常量
     * @author jacp
     */
    public static final class ZhongXingColumns implements BaseColumns {
        // 注意两张表的authority要不一样
        static final String AUTHORITY = "cn.10086.provider.launcher";
        static final String TABLE_NAME = "authentication";
        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + TABLE_NAME);
        public static final String DEFAULT_SORT_ORDER = "name desc";
        static final String NAME = "name";
        static final String VALUE = "value";
    }

    /**
     * 保存HuaWei表中用到的常量
     * @author mayliang
     */
    public static final class HuaWeiColumns implements BaseColumns {
        static final String AUTHORITY = "stbconfig";
        static final String TABLE_NAME = "authentication";
        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + TABLE_NAME);
        public static final String DEFAULT_SORT_ORDER = "name desc";
        static final String NAME = "name";
        static final String VALUE = "value";
    }
}